package com.huawei.appgallery.assistantdock.base.service.base.dispatch;

import java.util.HashMap;
import java.util.Map;
import o.dof;

class GameServiceDispatchRegister {
    private static Map<String, Class<? extends GameServiceDispatcher>> dispatcherMap = new HashMap();

    private GameServiceDispatchRegister() {
    }

    protected static void registerDispatcher(String str, Class<? extends GameServiceDispatcher> cls) {
        dispatcherMap.put(str, cls);
    }

    protected static Class<? extends GameServiceDispatcher> getDispatcher(String str) {
        if (dof.ˋ(str)) {
            return null;
        }
        return (Class) dispatcherMap.get(str);
    }
}
